package Exam.String;

import java.util.Scanner;

public class StringD3 {
    public static void main(String[] args) {
        //键盘录入abc
        Scanner sc =new Scanner(System.in);
        System.out.println("请输入字符串");
        String str1 = sc.next();  //new 出来的
        //直接定义abc
        String str2 = "abc";
        //使用==比较
        System.out.println(str1 == str2);//false
    }
}
